	   <script type="text/javascript">
   		function add_message(){
   			var name = $('#name').val();
   			var phone = $('#phone').val();
   			var content = $('#content').val();
   			var code = $('#code').val();
   			if(name==''){
   				alert('请填写联系人名字');
   				return false;
   			}
   			if(phone==''){
   				alert('请填写联系电话');
   				return false;
   			}
   			if(content==''){
   				alert('请填写咨询内容');
   				return false;
   			}
   			if(code==''){
   				alert('请填写验证码');
   				return false;
   			}
   		}
   		</script>
<div class="left">
		<div class="title01"><font color="#90ce52">设计师</font>档案</div>
		<div class="img"><img src="{CSS_PATH}images/jiancaixuangou_08.gif" /></div>
		<ul class="info_list">
			<li><label>贡献值：</label>198</li>
			<li><label>姓名：</label>{$d_data['name']}</li>
			<li><label>性别：</label>{if $d_data['sex']==0}男{else}女{/if}</li>
			<li><label>年龄：</label>{$d_data['age']}</li>
			<li><label>所在区域：</label>重庆市渝中区</li>
			<li><label>QQ：</label>{$d_data['qq']}</li>
			<li><label>联系电话：</label>{$d_data['phone']}</li>
		</ul>
		<div class="title01"><font color="#90ce52">访客</font>留言</div>
		{if ROUTE_A!='message'}
		<div class="message">
		<form action="{APP_PATH}index.php?m=content&c=designer&a=message" method="post">
		<input type="hidden" value="{$_GET['userid']}" name="userid">
		<textarea name="content" id="content" cols="" rows="" class="input"></textarea>
		<span class="input01">&nbsp;&nbsp;联系人：<input name="name" id="name" type="text" class="input02" /></span>
		<span class="input01">联系电话：<input name="phone" id="phone" type="text" class="input02" /></span>
		<span class="input01" >&nbsp;&nbsp;验证码：<input name="code" id="code" type="text" class="input03"/> </span>
		<span class="input01" style="margin-left:140px;margin-top:10px">{form::checkcode('code_img', '4', '14', 80, 24)}</span>
		<input name="dosubmit" onclick="return add_message();" type="submit" class="inputbutton20" value="提交" />
		</form>
		</div>	
		{/if}
</div>